//
//  VideoData.m
//  WuLi
//
//  Created by Gollum on 16/09/02
//  Copyright (c) Gollum. All rights reserved.
//

#import "VideoData.h"
#import "VideoNewsimageinfolist.h"

@implementation VideoData

+ (NSDictionary *)objectClassInArray{
    return @{@"newsImageInfoList" : [VideoNewsimageinfolist class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{
    //记得super
    [super setValue:value forKey:key];
    
    NSArray *valueArray = value;
    NSMutableArray <VideoNewsimageinfolist *>*videoArray = [NSMutableArray array];
    if ([key isEqualToString:@"newsImageInfoList"]) {
        for (NSDictionary *dic in valueArray){
            VideoNewsimageinfolist *news = [VideoNewsimageinfolist modelWithDic:dic];
            [videoArray addObject:news];
        }
        _newsImageInfoList = videoArray;
    }
}
@end
